import React from 'react';
// nodejs library that concatenates classes
import classNames from 'classnames';
// react components for routing our app without refresh
import Link from 'next/link';
// @material-ui/core components
import {makeStyles} from '@material-ui/core/styles';
// @material-ui/icons
// core components
import Header from 'app/components/Header/Header.js';
import HeaderLinks from 'app/components/Header/HeaderLinks.js';
import Footer from 'app/components/Footer/Footer.js';
import GridContainer from 'app/components/Grid/GridContainer.js';
import GridItem from 'app/components/Grid/GridItem.js';
import Button from 'app/components/CustomButtons/Button.js';
import Parallax from 'app/components/Parallax/Parallax.js';
// sections for this page
import SectionBasics from 'app/pages/components/SectionBasics.js';
import SectionNavbars from 'app/pages/components/SectionNavbars.js';
import SectionTabs from 'app/pages/components/SectionTabs.js';
import SectionPills from 'app/pages/components/SectionPills.js';
import SectionNotifications from 'app/pages/components/SectionNotifications.js';
import SectionTypography from 'app/pages/components/SectionTypography.js';
import SectionJavascript from 'app/pages/components/SectionJavascript.js';
import SectionCarousel from 'app/pages/components/SectionCarousel.js';
import SectionCompletedExamples from 'app/pages/components/SectionCompletedExamples.js';
import SectionLogin from 'app/pages/components/SectionLogin.js';
import SectionExamples from 'app/pages/components/SectionExamples.js';
import SectionDownload from 'app/pages/components/SectionDownload.js';

import styles from 'app/assets/jss/nextjs-material-kit/pages/components.js';

const useStyles = makeStyles(styles);

export default function Components(props) {
  const classes = useStyles();
  const {...rest} = props;
  return (
    <div>
      <Header
        brand="NextJS Material Kit"
        rightLinks={<HeaderLinks />}
        fixed
        color="transparent"
        changeColorOnScroll={{
          height: 400,
          color: 'white',
        }}
        {...rest}
      />
      <Parallax image={require('app/assets/img/nextjs_header.jpg')}>
        <div className={classes.container}>
          <GridContainer>
            <GridItem>
              <div className={classes.brand}>
                <h1 className={classes.title}>NextJS Material Kit.</h1>
                <h3 className={classes.subtitle}>
                  A Badass Material Kit based on Material-UI and NextJS.
                </h3>
              </div>
            </GridItem>
          </GridContainer>
        </div>
      </Parallax>

      <div className={classNames(classes.main, classes.mainRaised)}>
        <SectionBasics />
        <SectionNavbars />
        <SectionTabs />
        <SectionPills />
        <SectionNotifications />
        <SectionTypography />
        <SectionJavascript />
        <SectionCarousel />
        <SectionCompletedExamples />
        <SectionLogin />
        <GridItem md={12} className={classes.textCenter}>
          <Link href="/login">
            <a className={classes.link}>
              <Button color="primary" size="lg" simple>
                View Login Page
              </Button>
            </a>
          </Link>
        </GridItem>
        <SectionExamples />
        <SectionDownload />
      </div>
      <Footer />
    </div>
  );
}
